import 'package:flutter_ahj_app/app/pctask/PcrwModel.dart';
import 'package:flutter_ahj_app/base/basewidget/viewmodel/BaseViewModel.dart';

class PcrwViewModel extends BaseViewModel<PcrwModel> {
   @override
   PcrwModel get initModel => PcrwModel();




   // 排查任务列表(待处理)
   Stream<Map> getPcrwListStream() => model.getPcrwListStream;
   getPcrwList(Map map) {
     model.getPcrwList(map);
   }

   // 排查任务列表(我发起的)
   Stream<Map> getPcrwListStream1() => model.getPcrwListStream1;
   getPcrwList1(Map map) {
      model.getPcrwList1(map);
   }

   // 风险点信息
   Stream<Map> getFxdxxDataStream() => model.getFxdxxDataStream;
   getfxdxxList(Map map) {
      model.getfxdxxList(map);
   }

   // 排查详情
   Stream<Map> getPcDetailStream() => model.getpcDetailDataStream;
   getpcDetail(Map map) {
      model.getpcDetail(map);
   }
   // 排查状态更新 (正常)
   Stream<Map> getHazardUpdateStream() => model.getHazardUpdateStream;
   getHazardUpdate(Map map) {
      model.getHazardUpdate(map);
   }

   // 排查状态更新 (撤回)
   Stream<Map> getHazardUpdateStream1() => model.getHazardUpdateStream1;
   getHazardUpdate1(Map map) {
      model.getHazardUpdate1(map);
   }

   // 隐患详情
   Stream<Map> getpcyhDetailsStream() => model.getpcyhDetailsStream;
   getpcyhDetails(Map map) {
      model.getpcyhDetails(map);
   }

   //隐患登记
   Stream<Map> pcrwyhdjDataStream() => model.yhdjDataStream;
   pcrwyhdj(var map) {
      return model.yhdj(map);
   }

}
